package o;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import java.util.List;
import java.util.Map;

public interface awi extends IInterface {

    public static abstract class e extends Binder implements awi {

        static class a implements awi {
            private IBinder ˏ;

            a(IBinder iBinder) {
                this.ˏ = iBinder;
            }

            public IBinder asBinder() {
                return this.ˏ;
            }

            public String ˎ(String str) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    this.ˏ.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                    String readString = obtain2.readString();
                    return readString;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public float ˊ(String str) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    this.ˏ.transact(2, obtain, obtain2, 0);
                    obtain2.readException();
                    float readFloat = obtain2.readFloat();
                    return readFloat;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int ˋ(String str) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    this.ˏ.transact(3, obtain, obtain2, 0);
                    obtain2.readException();
                    int readInt = obtain2.readInt();
                    return readInt;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int ॱ(String str, int i) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    obtain.writeInt(i);
                    this.ˏ.transact(4, obtain, obtain2, 0);
                    obtain2.readException();
                    int readInt = obtain2.readInt();
                    return readInt;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean ˊ(awk o_awk) throws RemoteException {
                boolean z = false;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeStrongBinder(o_awk != null ? o_awk.asBinder() : null);
                    this.ˏ.transact(5, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean ˏ(awk o_awk) throws RemoteException {
                boolean z = false;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeStrongBinder(o_awk != null ? o_awk.asBinder() : null);
                    this.ˏ.transact(6, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean ˊ(int i) throws RemoteException {
                boolean z = false;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeInt(i);
                    this.ˏ.transact(7, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean ॱ(int i) throws RemoteException {
                boolean z = false;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeInt(i);
                    this.ˏ.transact(8, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean ˏ(String str, boolean z, String str2, int i, long j, String str3) throws RemoteException {
                boolean z2 = true;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    obtain.writeInt(z ? 1 : 0);
                    obtain.writeString(str2);
                    obtain.writeInt(i);
                    obtain.writeLong(j);
                    obtain.writeString(str3);
                    this.ˏ.transact(9, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() == 0) {
                        z2 = false;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z2;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean ˋ(String str, String str2, List<String> list) throws RemoteException {
                boolean z = false;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    obtain.writeString(str2);
                    obtain.writeStringList(list);
                    this.ˏ.transact(10, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean ॱ(String str) throws RemoteException {
                boolean z = false;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    this.ˏ.transact(11, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int ˏ(String str) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    this.ˏ.transact(12, obtain, obtain2, 0);
                    obtain2.readException();
                    int readInt = obtain2.readInt();
                    return readInt;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean ˏ(String str, boolean z, String str2, long j, long j2) throws RemoteException {
                boolean z2 = true;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    obtain.writeInt(z ? 1 : 0);
                    obtain.writeString(str2);
                    obtain.writeLong(j);
                    obtain.writeLong(j2);
                    this.ˏ.transact(13, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() == 0) {
                        z2 = false;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z2;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean ˊ(String str, boolean z, int i, int i2) throws RemoteException {
                boolean z2 = true;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    obtain.writeInt(z ? 1 : 0);
                    obtain.writeInt(i);
                    obtain.writeInt(i2);
                    this.ˏ.transact(14, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() == 0) {
                        z2 = false;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z2;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int ᐝ(String str) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    this.ˏ.transact(15, obtain, obtain2, 0);
                    obtain2.readException();
                    int readInt = obtain2.readInt();
                    return readInt;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean ˊ(String str, int i, int i2) throws RemoteException {
                boolean z = false;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    obtain.writeInt(i);
                    obtain.writeInt(i2);
                    this.ˏ.transact(16, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public Map ʽ(String str) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IPowerKitApi");
                    obtain.writeString(str);
                    this.ˏ.transact(17, obtain, obtain2, 0);
                    obtain2.readException();
                    Map readHashMap = obtain2.readHashMap(getClass().getClassLoader());
                    return readHashMap;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }

        public e() {
            attachInterface(this, "com.huawei.android.powerkit.adapter.IPowerKitApi");
        }

        public static awi ˏ(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.huawei.android.powerkit.adapter.IPowerKitApi");
            if (queryLocalInterface == null || !(queryLocalInterface instanceof awi)) {
                return new a(iBinder);
            }
            return (awi) queryLocalInterface;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            int i3 = 0;
            String str = "com.huawei.android.powerkit.adapter.IPowerKitApi";
            int ˋ;
            boolean ˊ;
            switch (i) {
                case 1:
                    parcel.enforceInterface(str);
                    str = ˎ(parcel.readString());
                    parcel2.writeNoException();
                    parcel2.writeString(str);
                    return true;
                case 2:
                    parcel.enforceInterface(str);
                    float ˊ2 = ˊ(parcel.readString());
                    parcel2.writeNoException();
                    parcel2.writeFloat(ˊ2);
                    return true;
                case 3:
                    parcel.enforceInterface(str);
                    ˋ = ˋ(parcel.readString());
                    parcel2.writeNoException();
                    parcel2.writeInt(ˋ);
                    return true;
                case 4:
                    parcel.enforceInterface(str);
                    ˋ = ॱ(parcel.readString(), parcel.readInt());
                    parcel2.writeNoException();
                    parcel2.writeInt(ˋ);
                    return true;
                case 5:
                    parcel.enforceInterface(str);
                    ˊ = ˊ(o.awk.a.ˎ(parcel.readStrongBinder()));
                    parcel2.writeNoException();
                    parcel2.writeInt(ˊ ? 1 : 0);
                    return true;
                case 6:
                    parcel.enforceInterface(str);
                    ˊ = ˏ(o.awk.a.ˎ(parcel.readStrongBinder()));
                    parcel2.writeNoException();
                    if (ˊ) {
                        i3 = 1;
                    }
                    parcel2.writeInt(i3);
                    return true;
                case 7:
                    parcel.enforceInterface(str);
                    ˊ = ˊ(parcel.readInt());
                    parcel2.writeNoException();
                    if (ˊ) {
                        i3 = 1;
                    }
                    parcel2.writeInt(i3);
                    return true;
                case 8:
                    parcel.enforceInterface(str);
                    ˊ = ॱ(parcel.readInt());
                    parcel2.writeNoException();
                    if (ˊ) {
                        i3 = 1;
                    }
                    parcel2.writeInt(i3);
                    return true;
                case 9:
                    parcel.enforceInterface(str);
                    ˊ = ˏ(parcel.readString(), parcel.readInt() != 0, parcel.readString(), parcel.readInt(), parcel.readLong(), parcel.readString());
                    parcel2.writeNoException();
                    if (ˊ) {
                        i3 = 1;
                    }
                    parcel2.writeInt(i3);
                    return true;
                case 10:
                    parcel.enforceInterface(str);
                    ˊ = ˋ(parcel.readString(), parcel.readString(), parcel.createStringArrayList());
                    parcel2.writeNoException();
                    if (ˊ) {
                        i3 = 1;
                    }
                    parcel2.writeInt(i3);
                    return true;
                case 11:
                    parcel.enforceInterface(str);
                    ˊ = ॱ(parcel.readString());
                    parcel2.writeNoException();
                    if (ˊ) {
                        i3 = 1;
                    }
                    parcel2.writeInt(i3);
                    return true;
                case 12:
                    parcel.enforceInterface(str);
                    ˋ = ˏ(parcel.readString());
                    parcel2.writeNoException();
                    parcel2.writeInt(ˋ);
                    return true;
                case 13:
                    parcel.enforceInterface(str);
                    ˊ = ˏ(parcel.readString(), parcel.readInt() != 0, parcel.readString(), parcel.readLong(), parcel.readLong());
                    parcel2.writeNoException();
                    if (ˊ) {
                        i3 = 1;
                    }
                    parcel2.writeInt(i3);
                    return true;
                case 14:
                    parcel.enforceInterface(str);
                    ˊ = ˊ(parcel.readString(), parcel.readInt() != 0, parcel.readInt(), parcel.readInt());
                    parcel2.writeNoException();
                    if (ˊ) {
                        i3 = 1;
                    }
                    parcel2.writeInt(i3);
                    return true;
                case 15:
                    parcel.enforceInterface(str);
                    ˋ = ᐝ(parcel.readString());
                    parcel2.writeNoException();
                    parcel2.writeInt(ˋ);
                    return true;
                case 16:
                    parcel.enforceInterface(str);
                    ˊ = ˊ(parcel.readString(), parcel.readInt(), parcel.readInt());
                    parcel2.writeNoException();
                    if (ˊ) {
                        i3 = 1;
                    }
                    parcel2.writeInt(i3);
                    return true;
                case 17:
                    parcel.enforceInterface(str);
                    Map ʽ = ʽ(parcel.readString());
                    parcel2.writeNoException();
                    parcel2.writeMap(ʽ);
                    return true;
                case 1598968902:
                    parcel2.writeString(str);
                    return true;
                default:
                    return super.onTransact(i, parcel, parcel2, i2);
            }
        }
    }

    Map ʽ(String str) throws RemoteException;

    float ˊ(String str) throws RemoteException;

    boolean ˊ(int i) throws RemoteException;

    boolean ˊ(String str, int i, int i2) throws RemoteException;

    boolean ˊ(String str, boolean z, int i, int i2) throws RemoteException;

    boolean ˊ(awk o_awk) throws RemoteException;

    int ˋ(String str) throws RemoteException;

    boolean ˋ(String str, String str2, List<String> list) throws RemoteException;

    String ˎ(String str) throws RemoteException;

    int ˏ(String str) throws RemoteException;

    boolean ˏ(String str, boolean z, String str2, int i, long j, String str3) throws RemoteException;

    boolean ˏ(String str, boolean z, String str2, long j, long j2) throws RemoteException;

    boolean ˏ(awk o_awk) throws RemoteException;

    int ॱ(String str, int i) throws RemoteException;

    boolean ॱ(int i) throws RemoteException;

    boolean ॱ(String str) throws RemoteException;

    int ᐝ(String str) throws RemoteException;
}
